import './assets/main.css'

import { createApp } from 'vue'
import pinia from '@/stores'

import 'virtual:svg-icons-register' // js文件 当直接引入js文件 执行

import App from './App.vue'
import router from './router'
import DocIcon from '@/components/doc-icon.vue'
import {
  Icon,
  Button,
  Form,
  Field,
  Radio,
  RadioGroup,
  Cell,
  Tabs,
  Tab,
  Search,
  Tabbar,
  TabbarItem
} from 'vant'

const app = createApp(App)

app.use(pinia)
app.use(router)
app
  .use(Icon)
  .use(Button)
  .use(Form)
  .use(Field)
  .use(Radio)
  .use(Cell)
  .use(RadioGroup)
  .use(Tabs)
  .use(Tab)
  .use(Search)
  .use(Tabbar)
  .use(TabbarItem)
app.component('DocIcon', DocIcon)

app.mount('#app')
